package jp.ameba.meshistock.app.controller;

import java.util.logging.Logger;

import org.apache.juli.logging.Log;
import org.apache.juli.logging.LogFactory;
import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;

import com.google.gson.Gson;

public abstract class BaseController extends Controller {

    /** log */
    protected Log log =  LogFactory.getLog(this.getClass());
    protected Logger logger = Logger.getLogger(this.getClass().getName());

    /** gson */
    protected Gson gson = new Gson();

    @Override
    public Navigation run() throws Exception {
        return runImpl();
    }

    protected abstract Navigation runImpl();
}
